package gnnt.MEBS.mjvm.model;



import java.util.ArrayList;
import java.util.List;

public class ThreadPool
{
  private String name;
  private int maxThreads;
  private int minSpareThreads;
  private int maxSpareThreads;
  private int currentThreadCount;
  private int currentThreadsBusy;
  private long maxTime;
  private long processingTime;
  private int requestCount;
  private int errorCount;
  private long bytesReceived;
  private long bytesSent;
  private List requestProcessors;

  public ThreadPool()
  {
    this.requestProcessors = new ArrayList(); }

  public String getName() {
    return this.name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getMaxThreads() {
    return this.maxThreads;
  }

  public void setMaxThreads(int maxThreads) {
    this.maxThreads = maxThreads;
  }

  public int getMinSpareThreads() {
    return this.minSpareThreads;
  }

  public void setMinSpareThreads(int minSpareThreads) {
    this.minSpareThreads = minSpareThreads;
  }

  public int getMaxSpareThreads() {
    return this.maxSpareThreads;
  }

  public void setMaxSpareThreads(int maxSpareThreads) {
    this.maxSpareThreads = maxSpareThreads;
  }

  public int getCurrentThreadCount() {
    return this.currentThreadCount;
  }

  public void setCurrentThreadCount(int currentThreadCount) {
    this.currentThreadCount = currentThreadCount;
  }

  public int getCurrentThreadsBusy() {
    return this.currentThreadsBusy;
  }

  public void setCurrentThreadsBusy(int currentThreadsBusy) {
    this.currentThreadsBusy = currentThreadsBusy;
  }

  public long getMaxTime() {
    return this.maxTime;
  }

  public void setMaxTime(long maxTime) {
    this.maxTime = maxTime;
  }

  public long getProcessingTime() {
    return this.processingTime;
  }

  public void setProcessingTime(long processingTime) {
    this.processingTime = processingTime;
  }

  public int getRequestCount() {
    return this.requestCount;
  }

  public void setRequestCount(int requestCount) {
    this.requestCount = requestCount;
  }

  public long getBytesReceived() {
    return this.bytesReceived;
  }

  public void setBytesReceived(long bytesReceived) {
    this.bytesReceived = bytesReceived;
  }

  public long getBytesSent() {
    return this.bytesSent;
  }

  public void setBytesSent(long bytesSent) {
    this.bytesSent = bytesSent;
  }

  public int getErrorCount() {
    return this.errorCount;
  }

  public void setErrorCount(int errorCount) {
    this.errorCount = errorCount;
  }

  public List getRequestProcessors() {
    return this.requestProcessors;
  }

  public void setRequestProcessors(List requestProcessors) {
    this.requestProcessors = requestProcessors;
  }

  public void addRequestProcessor(RequestProcessor rp) {
    this.requestProcessors.add(rp);
  }
}
